package com.sdk4.jinritemai;

public class DoudianResponse<T> {
    private Integer errNo;
    private String message;
    private T data;
    private String appKey;


    public boolean isSuccess() {
        return errNo != null && errNo == 0;
    }

    public Integer getErrNo() {
        return errNo;
    }

    public void setErrNo(Integer errNo) {
        this.errNo = errNo;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }
}
